<?php
class admin_models_login extends models{
	public function login($id,$pw){
		$query = $this->db->get_where('admin_detail', array('U_UserID' => $id,'U_Password'=>$pw));
		
		if($query->num_rows()){
			$row=$query->result();
			return $row[0]->U_id;
		}
		return false;
	}
}